package com.macro.mall.task;

import javax.annotation.Resource;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RestController;

import com.macro.mall.service.BmsDailyAttendanceRecordService;

@Component
@RestController
public class BmsDailyAttendanceRecordTask {

    @Resource
    private BmsDailyAttendanceRecordService bmsDailyAttendanceRecordService;

    @Scheduled(cron = "0 55 10 * * ?")
    private void runNextDayAttendanceRecord () {
        bmsDailyAttendanceRecordService.runNextDayAttendanceRecord();
    }

}
